package com.itheima.guozi;

public class Demo01 {

    public static void main(String[] args) {
        Cooker cooker = new Cooker();
        Foodie foodie = new Foodie();
        Thread t1 = new Thread(cooker);
        t1.setName("摊主");
        Thread t2 = new Thread(foodie);
        Thread t3 = new Thread(foodie);
        t2.setName("果子迷1");
        t3.setName("果子迷2");
        t1.start();
        t2.start();
        t3.start();

    }
}
